<?php
header("content-type:text/html;charset=utf-8");
include "../../public/config/config.php";
include "../../public/include/funcs.php";
$self=substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '/')+1);
$link=conn($cfg_dbhost,$cfg_dbuser,$cfg_dbpwd,$cfg_dbname,$cfg_dbchar);

$tid=$_GET['tid'];
$is_here=$_GET['is_here'];
$page=$_GET['page'];
$type=$_GET['type'];
$keyword=$_GET['keyword'];
$id=$_GET['id'];
$re=del($link, "tels","id=$id");
if($re){
	echo "<script>";
	echo "alert('删除成功！');";
	echo "window.location.href='save_tel.php?tid={$tid}&is_here={$is_here}&page={$page}&type={$type}&keyword={$keyword}';";
	echo "</script>";
}



?>
